package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Child  implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer childId;
    @TableField(exist = false)
    private Class aClass;
    @ApiModelProperty(value = "儿童姓名")
    private String childName;
    @ApiModelProperty(value = "儿童体重")
    private String weight;
    @ApiModelProperty(value = "儿童身高")
    private String height;
    @ApiModelProperty(value = "儿童性别")
    private String csex;
    @ApiModelProperty(value = "儿童生日")
    private String birth;
    @ApiModelProperty(value = "是否已购买保险")
    private Integer insurance;
    @TableLogic
    @ApiModelProperty(hidden = true)
    private Integer deleted;

    public Child(Integer childId){
        this.childId = childId;
    }
}
